package com.ashin;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] { "META-INF/spring/consumer.xml" });
        ctx.start();
        // obtain proxy object for remote invocation
        IHelloWorld demoService = (IHelloWorld) ctx.getBean("demoService");
        // execute remote invocation
        String hello = demoService.say("dubbo...");
        // show the result
        System.out.println(hello);
    }

}
